import {get, getNotParam, getPath, post} from '@/util/request'

export const addToFriend = data => post('/friend/addToFriend', data);

export const searchNewFriend = data => getPath(`/friend/searchNewFriend/${data}`);

export const whetherHaveNewFriend = data => getPath(`/friend/whetherHaveNewFriend/${data}`);

export const searchUserFriend = data => getPath(`/friend/searchUserFriend/${data}`);

export const checkFriend = data => post('/friend/checkFriend', data);

export const searchUserChatList = data => getPath(`/friend/searchUserChatList/${data}`);

export const changeToTopStatus = data => getPath(`/friend/changeToTopStatus/${data[0]}/${data[1]}`);

export const changeChatListDeleteStatus = data => getPath(`/friend/changeChatListDeleteStatus/${data[0]}/${data[1]}`);

export const searchFriend = data => post(`/friend/searchFriend`, data);